{% extends "base.html" %}
{% block title %}Cambiar Contraseña{% endblock %}
{% block body %}
    <h2>Cambiar Contraseña</h2>
    {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}
    <form action="" method=post>
        <table>
            <tr>
                <td>Contraseña anterior:</td>
                <td><input type=password name=pass_anterior size=30 value="{{ request.form.pass_anterior }}"></td>
            </tr>
            <tr>
                <td>Nueva Contraseña:</td>
                <td><input type=password name=pass_nuevo size=30 value="{{ request.form.pass_nuevo }}"></td>
            </tr>
            <tr>
                <td>Repetir Contraseña:</td>
                <td><input type=password name=pass_confirmacion size=30 value="{{ request.form.pass_confirmacion }}"></td>
            </tr>
        </table>
        <table>
            <tr>
                <td><input type=submit name="action" value="Guardar"></td>
                <td><button type=submit name="action" value="Salir" onclick="return confirm('Los datos no serán almacenados');">Cancelar</button></td>
            </tr>
        </table>
    </form>
{% endblock %}
